using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ns
{
    ///<summary>
    ///
    ///</summary>
    public class AirflowTrigger : FSMTrigger
    {
        public override bool HandleTrigger(FSMBase fsm)
        {
            if (fsm.airsmoke != null)
            {
                if (fsm.airsmoke.position == fsm.location + new Vector3Int(1, 2))
                {
                    return true;
                }
                if (fsm.airsmoke.position == fsm.location + new Vector3Int(1, 3))
                {
                    return true;
                }
            }
            return false;
        }

        public override void Init()
        {
            TriggerID = FSMTriggerID.Airflow;
        }
    }

}
